package com.lu.netty.util;

/**
 * @author xiaolu
 * @version 1.0
 * @date 2021-02-03 11:51
 */
public class ResponseUtil {

    public static Response createSuccessResult() {
        return new Response();
    }

    public static Response createFailResult(String code, String msg) {
        Response response = new Response();
        response.setCode(code);
        response.setMsg(msg);
        return response;
    }

    public static Response createSuccessResult(Object content) {
        Response response = new Response();
        response.setResult(content);
        return response;
    }
}
